package com.lanou.service.impl;

import com.lanou.bean.WatChdesginImg;
import com.lanou.mapper.IndexLunboMapper;
import com.lanou.mapper.WatChdesginImgMapper;
import com.lanou.service.Watchdesign;
import com.lanou.utils.AjaxResult;
import com.lanou.utils.MsgResult;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 王远航
 *         Created by dllo on 18/3/12.
 * @desc 获得所有的图片
 */
@Service
@Repository
public class WatchdesignImpl implements Watchdesign {
    @Resource
    private WatChdesginImgMapper watChdesginImgMapper;
    @Resource
    private IndexLunboMapper indexLunboMapper;

    @Override
       public AjaxResult getAllWatchDesginImg() {
       return MsgResult.msgSuccess(watChdesginImgMapper.selectAllWatchdesginImg());
    }

    @Override
    public AjaxResult getAllIndexLunboImg() {
        return  MsgResult.msgSuccess(indexLunboMapper.selectAllindexLunboImgList());
    }
}
